package com.xbongbong.pro.domain.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 用于批量更新接口
 * @author 吴峰
 * @version v1.0
 * @date 2019/3/1 19:36
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class UpdateSubDataValueEntity implements Serializable {

    /**
     * json的key
     */
    private String key;

    /**
     * es中json的key
     */
    private String esKey;

    /**
     * 值
     */
    private Object value;

    /**
     * 值的类型，用于区分数组
     */
    private String dataType;


    public UpdateSubDataValueEntity() {
    }

    public UpdateSubDataValueEntity(String key, String esKey, Object value, String dataType) {
        this.key =  key;
        this.esKey = esKey;
        this.value = value;
        this.dataType = dataType;
    }
}
